package ex44;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	
	public static void main(String[] args) throws IOException {
		
		InputStreamReader it = new InputStreamReader(System.in);
		BufferedReader in = new BufferedReader(it);
		
		String input, inputParts[];
		int a, b, min, max;
		boolean multiplo = false;
		
		input = in.readLine();
		inputParts = input.split(" ", 2);
		a = Integer.parseInt(inputParts[0]);
		b = Integer.parseInt(inputParts[1]);
		
		min = Math.min(a, b);
		max = Math.max(a, b);
		
		for (int i = 1; i <= max; i++) {
			
			if ( (min * i) == max ) {
				multiplo = true;
				break;
			} else {
				multiplo = false;
			}

		}
		
		if (multiplo) {
			System.out.println("Sao Multiplos");
		} else {
			System.out.println("Nao sao Multiplos");
		}
		
	}

}
